import API from "@/utils/request";

/**
 * 订单
 * @param {Object} data 参数
 */

export const THEORDER = data => {
  // 商品列表
  return API("pyapi/Order_List", data);
};
export const ORDERINFO = data => {
  // 商品详情
  return API("pyapi/oder_if", data);
};
export const COURIER = data => {
  //  快递
  return API("pyapi/WxExpress_info", data);
};
export const COURIERFORM = data => {
  // 发货
  return API("pyapi/Deliver_goods", data);
};
export const ORDERDDETAIL = data => {
  // 取消订单
  return API("pyapi/Cancellation_order", data);
};
export const ORDERMAGE = data => {
  // 储值订单
  return API("pyapi/Delivery_order", data);
};
export const CUSTOTMER = data => {
  // 用户详情 sp/v1.Coupon/get_comment
  return API("pyapi/user_info", data);
};
export const COMMENT = data => {
  // 储值订单 sp/v1.Coupon/add_reply
  return API("sp/v1.Coupon/get_comment", data);
};
export const REPLY = data => {
  // 储值订单 sp/v1.Coupon/add_reply
  return API("sp/v1.Coupon/add_reply", data);
};
export const RESERVE = data => {
  // 储值订单 pyapi/Reserve_order
  return API("pyapi/Reserve_order", data);
};
export const ORDERSET = data => {
  // 下单设置
  return API("sp/v1.Setting/setPlaceOrderSetting", data);
};
export const PROCESSSET = data => {
  // 订单流程设置
  return API("sp/v1.Setting/setOrderProcessSetting", data);
};
export const ACTIVISTSET = data => {
  // 维权设置
  return API("sp/v1.Setting/setOrderRightsSetting", data);
};
export const COMMENTSET = data => {
  // 商品评论设置
  return API("sp/v1.Setting/setGoodsCommentSetting", data);
};
export const UP_TOKEN = data => {
  return API("newaddress/Purchase/up_token", data);
};
// 分销订单
export const DISTRIBUTION_ORDERS = data => {
  return API("pyapi/distribution_orders", data);
};
